package com.storm.util

import org.springframework.boot.context.properties.ConfigurationProperties

@ConfigurationProperties(prefix = "storm.auth.cache.key")
class StormAuthCacheKeyProperties {
    /**
     * 缓存用户的key
     */
    var userKey = "storm:auth:userinfo:"
    /**
     * 客户token存储位置
     */
    var tokenKey = "storm:auth:token:"
    /**
     * 客户刷新token存储位置
     */
    var refreshTokenKey = "storm:auth:token:"
    /**
     * 不需要鉴权的地址的缓存key
     */
    var permitPathKey = "rest:xxx:security:permit"
    /**
     * 需要鉴权的地址的缓存key
     */
    var authPathKey = "rest:xxx:security:auth"
    /**
     * 标识token失效
     */
    var tokenTimeoutKey = "rest:web:security:token:timeout:"
}